package com.njtoyo.taxi.admin.mapper.master.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum RideStateState {
    waiting(0, "等待中"),
    contracted(1, "司机已接单"),
    pickuping(2, "实时单为司机接单，预约单为司机出发"),
    started(3, "行程开始"),
    ended(4, "行程结束"),
    completed(5, "已完成"),
    marked(6, "已评价"),
    cancelled(7, "已取消"),
    forcecancelled(8, "有责取消"),
    inarea(9, "到达上车点");

    @EnumValue
    private final int code;
    private final String desc;

    RideStateState(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
